<?php
 
/**
 * Description of SAppConfig 
 *
 * @author JeyDotC
 * 
 * @export Config
 * @export-metadata singleinstance
 */
class SAppConfig extends AppConfig {
    /**
     *
     * @var array
     */
    private $document;
    
    public function get($key) {
        return $this->document[$key];
    }

    protected function load() {
        $json = file_get_contents(Loader::toSinglePath("config", ".json"));
        $this->document = json_decode($json, true);
    }

}

?>
